#ifndef SEARCH_IN_PANEL_H
#define SEARCH_IN_PANEL_H



#include <wx/panel.h>

class wxWindow;
class wxCheckBox;
class wxCommandEvent;
class wxCustomButton;
class wxImageList;

class SearchInPanel: public wxPanel {
  public:
    // begin wxGlade: SearchInPanel::ids


    SearchInPanel( wxWindow* parent, int id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0 );

    // Getters
    bool GetSearchInOpenFiles()      const;
    bool GetSearchInTargetFiles()    const;
    bool GetSearchInProjectFiles()   const;
    bool GetSearchInWorkspaceFiles() const;
    bool GetSearchInDirectory()      const;

    // Setters
    void SetSearchInOpenFiles( bool bSearchInOpenFiles );
    void SetSearchInTargetFiles( bool bSearchInTargetFiles );
    void SetSearchInProjectFiles( bool bSearchInProjectFiles );
    void SetSearchInWorkspaceFiles( bool bSearchInWorkspaceFiles );
    void SetSearchInDirectory( bool bSearchInDirectory );

  private:
    // begin wxGlade: SearchInPanel::methods
    void set_properties();
    void do_layout();

  protected:
    // begin wxGlade: SearchInPanel::attributes
    wxCustomButton* m_pBtnSearchOpenFiles;
    wxCustomButton* m_pBtnSearchTargetFiles;
    wxCustomButton* m_pBtnSearchProjectFiles;
    wxCustomButton* m_pBtnSearchWorkspaceFiles;
    wxCustomButton* m_pBtnSearchDir;


    DECLARE_EVENT_TABLE();

  public:

    void OnBtnClickEvent( wxCommandEvent &event );
    // The 3 following methods work together. It offers a kind of
    // radio boxes group. They make impossible to select both workspace,
    // project and target buttons (it is stupid to search both in project


    void OnBtnSearchTargetFilesClick( wxCommandEvent &event );

    void OnBtnSearchProjectFilesClick( wxCommandEvent &event );

    void OnBtnSearchWorkspaceFilesClick( wxCommandEvent &event ); // wxGlade: <event_handler>
};

#endif
